package com.wind.data.square;

import com.wind.base.adapter.DisplayItem;
import com.wind.base.response.PageResponse;
import com.wind.data.square.bean.BannerItem;
import com.wind.data.square.bean.BannerList;
import com.wind.data.square.bean.SquareBanner;
import com.wind.data.square.bean.SquareItem;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wind on 2018/9/4.
 */

public class SquareResponse extends PageResponse<SquareItem> {

    private SquareBanner data;

    public SquareBanner getData() {
        return data;
    }

    public void setData(SquareBanner data) {
        this.data = data;
    }

    @Override
    public List<SquareItem> getItems() {

      /*  List<BannerItem> banner=new ArrayList<>();
        for (BannerItem bannerItem:data.getBanner()){
            banner.add(bannerItem);
        }
        BannerList bannerList=new BannerList(banner);
        List<DisplayItem> items=new ArrayList<>();
        items.add(bannerList);
        for (SquareItem squareItem:data.getSquare()){
            items.add(squareItem);
        }*/

        return data.getSquare();
    }
}
